package com.mars.upms.rpc.api;

import java.util.List;

import com.mars.base.service.support.IService;
import com.mars.upms.entity.UpmsCompany;

public interface UpmsCompanyService extends IService<UpmsCompany, Integer> {
	
	/**
	 * 查询所有根节点
	 * @return
	 */
	public List<UpmsCompany> selectRoot() ;

	/**
	 * 根据父ID查询子节点
	 * @param pid
	 * @return
	 */
	public List<UpmsCompany> selectChildren(Integer pid) ;
	
	/**
	 * 递归节点
	 * @return
	 */
	public List<UpmsCompany> tree(UpmsCompany entity) ;
	
	/**
	 * 移除该公司下的所有用户
	 * @param departmentId
	 */
	public void removeCompanyAssignAllUser(Integer companyId);
	
}
